package com.xhwl.logistics.util;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName PageResult
 * @Description: TODO
 * @Author llg
 * @Date 2021/11/16
 * @Version V1.0
 **/
@Data
public class PageResult<T> {

    @ApiModelProperty(value = "当前页", required = true)
    private Long pageNumber;

    @ApiModelProperty(value = "一页条数", required = true)
    private Long pageSize;

    @ApiModelProperty(value = "总共页数", required = true)
    private Long totalPage;

    @ApiModelProperty(value = "总共条数", required = true)
    private Long totalSize;

    @ApiModelProperty(value = "记录", required = true)
    private List<T> records;

    public Long getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Long pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public Long getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Long totalPage) {
        this.totalPage = totalPage;
    }

    public Long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(Long totalSize) {
        this.totalSize = totalSize;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }
}
